package com.rd.student.ruanjian.class4.baiyunyao.DAY0728;

import java.util.ArrayList;
import java.util.Random;

public class baio{
    public static  void main(String[] args) throws InterruptedException {
        System.out.println("欢迎光临lady");
        Thread.sleep(3000);
        ArrayList animal = new ArrayList();
        String cat1 = "波斯";
        String cat2 = "英短";
        String cat3 = "Tom";
        String cat4 = "暹罗";
        String cat5= "狸花";
        String dog1 = "金毛";
        String dog2 = "金毛2";
        String dog3 = "萨摩耶";
        String dog4= "泰迪";
        String dog5= "泰迪2";
        String dog6 = "斗牛";
        String dog7 = "德牧";
        String dog8 = "中华田园";
        String dog9 = "昆明";
        String dog10 = "二哈";
        String pig1 = "white";
        String pig2 = "black";
        String pig3 = "Goldenglow";
        animal.add(cat1);
        animal.add(cat2);
        animal.add(cat3);
        animal.add(cat4);
        animal.add(cat5);
        animal.add(dog1);
        animal.add(dog2);
        animal.add(dog3);
        animal.add(dog4);
        animal.add(dog5);
        animal.add(dog6);
        animal.add(dog7);
        animal.add(dog8);
        animal.add(dog9);
        animal.add(dog10);
        animal.add(pig1);
        animal.add(pig2);
        animal.add(pig3);

        Random random = new Random();
        int name = random.nextInt(animal.size());
        for (int i = 0; i <= animal.size(); i++) {
            if (name == i) {
                System.out.println("lady开盲盒开到了" + (name + 1) + "号"+(name + 1)+"狂叫");
            }


            Random random2= new Random();
            int price = random.nextInt(6);
            System.out.println("lady的满意度为"+(price));
            do {
                System.out.println("lady好像不是很满意");
            }while (price < 1);
            do {
                int name2 = random.nextInt(animal.size());
                for (int j = 0; j <= animal.size(); i++) {
                    if (name2 == j) {
                        System.out.println("lady开盲盒开到了" + (name2 + 1) + "号"+(name2 + 1)+"狂叫");
                    }
                }
            } while(price<1);
    }
}}

